package cn.edu.seig.textbook.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;
/**
 * <p>
 *
 * </p>
 *
 * @author day
 * @since 2024-11-07
 */
@Getter
public enum OrderEnum {
    ONORDER(1,"已订购"),
    NOORDER(2,"未订购");

    @EnumValue
    private final Integer order;
    private final String orderName;
    OrderEnum(Integer order, String orderName) {
        this.order = order;
        this.orderName = orderName;
    }

    @Override
    public String toString() {
        return orderName;
    }
}
